package com.alan.service;

import com.alan.entity.RestBean;
import com.alan.entity.dto.RegisterUserDto;
import jakarta.servlet.http.HttpSession;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthenticationService extends UserDetailsService {
    RestBean sendValidateEmail(String email, String sessionId,boolean hasAccount);

    RestBean<String> vaildateAndRegister(RegisterUserDto registerUserDto,String sessionId);

    RestBean validateOnly(String email, String code, String id);

    boolean resetPassword(String password, String email);
}
